﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Vinetlife.Master" AutoEventWireup="true"
    CodeBehind="ClientSystem.aspx.cs" Inherits="VINETLIFE.Customers.ClientSystem" %>

<%@ Register Src="/Module/ucVnLeftCustomerMenu.ascx" TagName="ucVnLeftCustomerMenu" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function checkBeforeSearch()
        {
            if ($('[id$=txtFromDate]').val() == '') {
                alert('Vui lòng chọn ngày!');
                $('[id$=txtFromDate]').focus();
                return false;
            }

            if ($('[id$=txtToDate]').val() == '') {
                alert('Vui lòng chọn ngày!');
                $('[id$=txtToDate]').focus();
                return false;
            }
            return true;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main-container-inner">
        <div class="main-container-inner">
            <div id="breadcrumb">
                <ul class="crumbs">
                    <li class="first"><a href="/" style="z-index: 9;" title="Trang chủ"><span></span>Trang chủ</a></li>
                    <li><a href="/trang-ca-nhan/" style="z-index: 8;">Trang cá nhân</a></li>
                    <li><a href="/he-thong-khach-hang/" style="z-index: 7;">Hệ thống khách hàng</a></li>
                </ul>
            </div>
            <div class="t-content-wrap">
                <div class="main-container-inner-left">
                    <uc1:ucVnLeftCustomerMenu ID="ucVnLeftCustomerMenu1" runat="server" />
                </div>
                <div class="main-container-inner-right">
                    <div class="div-comment">
                        
                        <div class="comment-box-register">
                            <h4 class="h4style1">Hệ thống khách hàng</h4>
                            <div class="margin-20"></div>
                            <div>
                            <div style="float:left;width:100%;">
                                <div class="dth-search-from-date">
                                    <span class="tranhis-lable-date">Từ ngày</span>
                                    <asp:TextBox runat="server" ID="txtFromDate" CssClass="dth-input" Width="100px"></asp:TextBox>
                                    <cc1:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="txtFromDate" Format="dd/MM/yyyy"></cc1:CalendarExtender>
                                </div>
                                <div class="dth-search-from-date">
                                    <span class="tranhis-lable-date">Tới ngày</span>
                                    <asp:TextBox runat="server" ID="txtToDate" CssClass="dth-input" Width="100px"></asp:TextBox>
                                    <cc1:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="txtToDate" Format="dd/MM/yyyy"></cc1:CalendarExtender>
                                </div>
                               <div style="float:left;"> <asp:Button runat="server" ID="btnSearch" CssClass="button-gg-green" OnClientClick="return checkBeforeSearch();" OnClick="btnSearch_Click" Text="Tìm kiếm" /></div>
                            </div>
                        </div>
                             <div class="margin-20"></div>
                            <asp:GridView ID="grvAccountReceivedMoney" DataKeyNames="Id" runat="server" AutoGenerateColumns="False"
                                PageSize="50" CssClass="tstyle2" Width="100%" PagerStyle-CssClass="pgr" AllowPaging="true"
                                OnPageIndexChanging="grvAccountReceivedMoney_PageIndexChanging">
                                <Columns>
                                    <asp:TemplateField HeaderText="#" ItemStyle-Width="32px" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <%# Container.DataItemIndex + 1 %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField ItemStyle-Width="520px" HeaderText="Tên khách hàng">
                                        <ItemTemplate>
                                            <%#Eval("CustomerCode")%> - <%#Eval("FullName") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="CreatedDate" DataFormatString="{0:dd/MM/yyyy hh:mm tt}" HeaderText="Ngày tham gia" ItemStyle-Width="300px" />
                                </Columns>
                                <EmptyDataTemplate>
                                    <p>Không có hệ thống khách hàng nào</p>
                                </EmptyDataTemplate>
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
